package nba2kmodtool.filedesc;

import java.util.List;
import java.util.Map;

public class IffBlock {

	long blockSerial;
	long blockSize;
	int partNum;
	long blockAddr;
	long compressedSize;
	boolean isCompressed;
	int indexType = 0;
	Map<Long, IffBlockIndex> indexMap = null;
	int chunkNum;
	long chunkAddr;
	List<IffBlockIndex> blockIndexList;

	public String toString() {
		return String.format(
				"BlockSerial: %X, PartNum: %d, BlockAddr: %#X, BlockSize: %#x, CompressedSize: %#x, isCompressed: %s",
				blockSerial, partNum, blockAddr, blockSize, compressedSize, isCompressed);
	}

	public long getBlockSerial() {
		return blockSerial;
	}

	public long getBlockSize() {
		return blockSize;
	}

	public int getPartNum() {
		return partNum;
	}

	public long getBlockAddr() {
		return blockAddr;
	}

	public long getCompressedSize() {
		return compressedSize;
	}

	public boolean isCompressed() {
		return isCompressed;
	}
}